﻿@using ClassBLL
@using ClassModel

@{
    t_classDemo_UserInfo userinfo = ViewBag.currentLoginer;
    t_class_attachment_info attachInfo = null;
    if (userinfo != null)
    {
        attachInfo = t_class_attachment_info_BLL.GetAttachmentByUserId(userinfo.id);
    }

    string requestURL = this.Request.Url.ToString();
}

<div class="top">
    <a href="/Home">
        <img src="/Static/NewPages/assets/css/images/index2/logo.png" alt="">
    </a>
    <ul>
        <li>学校</li>
        <li id="label_school_name">@(attachInfo != null ? attachInfo.SchoolName : "未设置")</li>
        <li><span></span></li>
        <li>欢迎您</li>
        <li>@(userinfo != null ? userinfo.userAccount : "未登录")</li>
        <li><span></span></li>
        <li><a href="/Home/Logout">退出</a></li>
    </ul>
</div>

@if (requestURL.Contains("OperatorClassDetail"))
{ 
    @Html.Partial("_navi")
}

